From 6900237a796d7b4dcd0532095a65d536d0f6c47b Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Tue, 19 Feb 2008 12:58:13 +0000 Subject: [PATCH] reverted previous change as it introduces the risk of not testing any 2008-02-19 Sven Neumann * babl/babl-fish-path.c (test_create): reverted previous change as it introduces the risk of not testing any values between 0.0 and 1.0. svn path=/trunk/; revision=280 --- ChangeLog | 5 +++++ babl/babl-fish-path.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 66b0b5d..f6d33a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-02-19 Sven Neumann + + * babl/babl-fish-path.c (test_create): reverted previous change as + it introduces the risk of not testing any values between 0.0 and 1.0. + 2008-02-19 Øyvind Kolås * babl/babl-fish-path.c: (test_create): make the testbuffer contain diff --git a/babl/babl-fish-path.c b/babl/babl-fish-path.c index 785a8d3..666c38b 100644 --- a/babl/babl-fish-path.c +++ b/babl/babl-fish-path.c @@ -437,7 +437,7 @@ test_create (void) test = babl_malloc (sizeof (double) * test_pixels * 4); for (i = 0; i < test_pixels * 4; i++) - test [i] = ((double) random () / RAND_MAX) * 2 - 0.25; + test [i] = (double) random () / RAND_MAX; return test; } -- 2.30.2